package com.gxgeek.javabasic.queue;

/**
 * @author gaoxing
 * @create 2018-05-30 下午2:40
 */
public abstract class AbstractConsumer implements Consumer, Runnable {

    @Override

    public void run() {

        while (true) {

            try {

                consume();

            } catch (InterruptedException e) {

                e.printStackTrace();

                break;

            }

        }

    }

}

